/**
 * Generate time : 2011-11-24 5:59:06
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cl.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCLReport_Safetyreport table comment : 安全报表
 */
public class ZMCLReport_SafetyReport extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdTitle = " "; /* 标题 */
	private String fdReportDate = " "; /* 隐患日报日期 */
	private String fdType = " "; /* 类型 */
	private String fdStatus = " "; /* 状态 */
	private String fdCreatePeopleId = " "; /* 编制人ID */
	private String fdCreatePeople = " "; /* 编制人 */
	private String fdCreateDepartmentId = " "; /* 编制部门ID */
	private String fdCreateDepartment = " "; /* 编制部门 */
	private String fdCreatetTime = " "; /* 编制时间 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTitle");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("标题");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReportDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("隐患日报日期");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdType");
		eiColumn.setFieldLength(1);
		eiColumn.setDescName("类型");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdStatus");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("状态");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCreatePeopleId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("编制人ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCreatePeople");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("编制人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCreateDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("编制部门ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCreateDepartment");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("编制部门");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCreatetTime");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("编制时间");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCLReport_SafetyReport() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdTitle - 标题
	 * 
	 * @return the fdTitle
	 */
	public String getFdTitle() {
		return this.fdTitle;
	}

	/**
	 * set the fdTitle - 标题
	 */
	public void setFdTitle(String fdTitle) {
		this.fdTitle = fdTitle;
	}

	/**
	 * get the fdReportDate - 隐患日报日期
	 * 
	 * @return the fdReportDate
	 */
	public String getFdReportDate() {
		return this.fdReportDate;
	}

	/**
	 * set the fdReportDate - 隐患日报日期
	 */
	public void setFdReportDate(String fdReportDate) {
		this.fdReportDate = fdReportDate;
	}

	/**
	 * get the fdType - 类型
	 * 
	 * @return the fdType
	 */
	public String getFdType() {
		return this.fdType;
	}

	/**
	 * set the fdType - 类型
	 */
	public void setFdType(String fdType) {
		this.fdType = fdType;
	}

	/**
	 * get the fdStatus - 状态
	 * 
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}

	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}

	/**
	 * get the fdCreatePeopleId - 编制人ID
	 * 
	 * @return the fdCreatePeopleId
	 */
	public String getFdCreatePeopleId() {
		return this.fdCreatePeopleId;
	}

	/**
	 * set the fdCreatePeopleId - 编制人ID
	 */
	public void setFdCreatePeopleId(String fdCreatePeopleId) {
		this.fdCreatePeopleId = fdCreatePeopleId;
	}

	/**
	 * get the fdCreatePeople - 编制人
	 * 
	 * @return the fdCreatePeople
	 */
	public String getFdCreatePeople() {
		return this.fdCreatePeople;
	}

	/**
	 * set the fdCreatePeople - 编制人
	 */
	public void setFdCreatePeople(String fdCreatePeople) {
		this.fdCreatePeople = fdCreatePeople;
	}

	/**
	 * get the fdCreateDepartmentId - 编制部门ID
	 * 
	 * @return the fdCreateDepartmentId
	 */
	public String getFdCreateDepartmentId() {
		return this.fdCreateDepartmentId;
	}

	/**
	 * set the fdCreateDepartmentId - 编制部门ID
	 */
	public void setFdCreateDepartmentId(String fdCreateDepartmentId) {
		this.fdCreateDepartmentId = fdCreateDepartmentId;
	}

	/**
	 * get the fdCreateDepartment - 编制部门
	 * 
	 * @return the fdCreateDepartment
	 */
	public String getFdCreateDepartment() {
		return this.fdCreateDepartment;
	}

	/**
	 * set the fdCreateDepartment - 编制部门
	 */
	public void setFdCreateDepartment(String fdCreateDepartment) {
		this.fdCreateDepartment = fdCreateDepartment;
	}

	/**
	 * get the fdCreatetTime - 编制时间
	 * 
	 * @return the fdCreatetTime
	 */
	public String getFdCreatetTime() {
		return this.fdCreatetTime;
	}

	/**
	 * set the fdCreatetTime - 编制时间
	 */
	public void setFdCreatetTime(String fdCreatetTime) {
		this.fdCreatetTime = fdCreatetTime;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdTitle(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTitle")), fdTitle));
		setFdReportDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportDate")), fdReportDate));
		setFdType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdType")), fdType));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdCreatePeopleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreatePeopleId")), fdCreatePeopleId));
		setFdCreatePeople(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreatePeople")), fdCreatePeople));
		setFdCreateDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateDepartmentId")), fdCreateDepartmentId));
		setFdCreateDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateDepartment")), fdCreateDepartment));
		setFdCreatetTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreatetTime")), fdCreatetTime));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdTitle", StringUtils.toString(fdTitle, eiMetadata.getMeta("fdTitle")));
		map.put("fdReportDate", StringUtils.toString(fdReportDate, eiMetadata.getMeta("fdReportDate")));
		map.put("fdType", StringUtils.toString(fdType, eiMetadata.getMeta("fdType")));
		map.put("fdStatus", StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));
		map.put("fdCreatePeopleId", StringUtils.toString(fdCreatePeopleId, eiMetadata.getMeta("fdCreatePeopleId")));
		map.put("fdCreatePeople", StringUtils.toString(fdCreatePeople, eiMetadata.getMeta("fdCreatePeople")));
		map.put("fdCreateDepartmentId", StringUtils.toString(fdCreateDepartmentId, eiMetadata.getMeta("fdCreateDepartmentId")));
		map.put("fdCreateDepartment", StringUtils.toString(fdCreateDepartment, eiMetadata.getMeta("fdCreateDepartment")));
		map.put("fdCreatetTime", StringUtils.toString(fdCreatetTime, eiMetadata.getMeta("fdCreatetTime")));

		return map;

	}
}